#include "StdAfx.h"
#include "UITalkBase.h"

CUITalkBase::CUITalkBase(void):
m_pSceneLayoutUI( NULL ),
m_pm( NULL )
{
}

CUITalkBase::~CUITalkBase(void)
{
	ClearUI();
}

void	CUITalkBase::AppendUI( CContainerUI*  pSceneUI  , HWND hSkinWnd){
	m_pSceneLayoutUI = pSceneUI;
	m_hSkinWnd = hSkinWnd;
}

void CUITalkBase::AppendChildUI( CContainerUI*  pSceneUI  ){
	return;
}

void CUITalkBase::ClearUI(){
	if( NULL != m_pSceneLayoutUI ){
		m_pSceneLayoutUI->RemoveAll();
	}
}

void CUITalkBase::AddManager( CPaintManagerUI* pm ){
	m_pm = pm;
}

void	CUITalkBase::SetVisible( bool		bvisible ){
	if( m_pSceneLayoutUI != NULL )
		m_pSceneLayoutUI->SetVisible( bvisible );
}